﻿using RoadQualityEvaluatorData.Domain.Entities;
using RoadQualityEvaluatorData.DomainServices.Generic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace RoadQualityEvaluatorData.DomainServices.Repositories
{
    public class MapSectionRepository : Repository<MapSection>
    {
        public MapSectionRepository()
            : base()
        {
        }

        public MapSectionRepository(UnitOfWork uo) : base(uo)
        {
        }

        public MapSection GetMapSectionByName(string name)
        {
            return this.GetAll().Where(m => m.Name.Equals(name)).FirstOrDefault();
        }
    }
}